package com.cyt.work.association.model.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * Created by Administrator on 2019/9/4.
 */
@Data
public class WxAssociationNewStuExportVo implements Serializable {

    /**
     * 学号
     */
    @Excel(name = "*学号")
    @NotBlank(message = "工号/学号不能为空")
    private String userNumber;

    /**
     * 姓名
     */
    @Excel(name = "*姓名")
    @NotBlank(message = "姓名不能为空")
    private String userName;

    /**
     * 班级名称
     */
    @Excel(name = "*班级名称")
    @NotBlank(message = "班级名称不能为空")
    private String className;

    /**
     * 年级名称
     */
    @Excel(name = "*年级名称")
    @NotBlank(message = "年级名称不能为空")
    private String gradeName;


    @Excel(name = "*手机号", isImportField = "true_st")
    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "^[1](([3|5|8][\\d])|([4][4,5,6,7,8,9])|([6][2,5,6,7])|([7][^9])|([9][1,8,9]))[\\d]{8}$", message = "请输入正确的手机号")
    private String mobile;

    public WxAssociationNewStuExportVo(){

    }
    public WxAssociationNewStuExportVo(String userNumber, String userName, String className, String gradeName,String mobile) {
        this.userNumber = userNumber;
        this.userName = userName;
        this.className = className;
        this.gradeName = gradeName;
        this.mobile = mobile;
    }

}
